home *** CD-ROM | disk | FTP | other *** search
- set sphereCount 5
- set sphereRadius 1.0
- set sphereSpacing 2.5
- set sphereColor {1.0 0.0 0.0}
-
- # if it returns 1, continue, if it returns 0, (nicely) abort the script
- #if {[loadControlPanelModallyAndClose simpleSpheresTest.nib]} {} {return }
-
- loadControlPanel simpleSpheresTest2.nib
-
- #
- # some useful procs...
- #
- proc startShape {shapeName} { AttributeBegin; Attribute identifier name $shapeName }
- #
- proc endShape {} { AttributeEnd }
- ###
-
- startShape MamaSphere
- Sphere $sphereRadius [expr {-$sphereRadius}] $sphereRadius 360
- for {set i 1} {$i < $sphereCount} {incr i} \
- { startShape sphere${i}
- set newX [expr {$i * $sphereSpacing}]
- Translate $newX 0 0
- # USAGE: Sphere radius zMin zMax thetaMax [parameterlist]
- EveCmd {Color $sphereColor}
- Sphere $sphereRadius [expr {-$sphereRadius}] $sphereRadius 360
- endShape
- }
- endShape